package org.dtrd.modules.flup.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.flup.entity.po.DtrdRlFlupProjectRecord;

/**
 * @author qr
 * @date 2021/12/23 14:53
 */
@ApiModel("复诊项目数据")
@Setter
@Getter
public class FlupProjectRecord {

    @ApiModelProperty("复诊项目id")
    private Integer flupProjectId;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("服务是否完成")
    private Integer projectStatus;

    @ApiModelProperty("项目数据")
    private String projectData;

    @ApiModelProperty("项目详情")
    private String projectDetail;

    @ApiModelProperty("项目建议")
    private String projectSuggest;

    @ApiModelProperty("操作员")
    private String operator;

    public FlupProjectRecord parseFromPO(DtrdRlFlupProjectRecord po) {
        flupProjectId = po.getDataId();
        projectData = po.getProjectData();
        projectSuggest = po.getProjectSuggest();
        projectStatus = po.getProjectStatus();
        return this;
    }
}
